[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Dean Hung
stance. > > > > Sometimes text under the underbrace can become quite long, and should be > split into two (or more) lines. In the example below, "firstline" should > be the top line of the underbrace label, and "secondline" should be on the > lower line o

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Mikael Sundqvist
nd should be > split into two (or more) lines. In the example below, "firstline" should be > the top line of the underbrace label, and "secondline" should be on the lower > line of the underbrace label, but as it stands, both are printed on the same > line. > &g

[NTG-context] underbrace label across two lines

2023-12-19 Thread Dean Hung
ot; should be the top line of the underbrace label, and "secondline" should be on the lower line of the underbrace label, but as it stands, both are printed on the same line. \underbrace[mindepth=0.5cm]{\tf x+y+z}_{\vrule width 0pt height 0.5cm\relax\text{firstline secondline}} I have trie

[NTG-context] Re: Metapost label text surrounded by white border

2023-11-20 Thread Emanuel Han via ntg-context
white 1mm thick border in a Metapost >> label. Here is my code, which doesn't draw the border at all and which draws >> the text in white instead of black (I'm using mkiv and mkxl version >> 2023.09.26 18:19 on osx-arm6): >> | >> |beginfig(1); >> %

[NTG-context] Re: Metapost label text surrounded by white border

2023-11-19 Thread Henning Hraban Ramm
Am 19.11.23 um 16:41 schrieb Emanuel Han via ntg-context: I'd like to surround black text with a white 1mm thick border in a Metapost label. Here is my code, which doesn't draw the border at all and which draws the text in white instead of black (I'm using mkiv and mkxl version 2023.09.26 18

[NTG-context] Metapost label text surrounded by white border

2023-11-19 Thread Emanuel Han via ntg-context
I'd like to surround black text with a white 1mm thick border in a Metapost label. Here is my code, which doesn't draw the border at all and which draws the text in white instead of black (I'm using mkiv and mkxl version 2023.09.26 18:19 on osx-arm6): beginfig(1); % Define the text and colors

[NTG-context] Re: numbered itemize list item label alignment

2023-10-19 Thread Csikos Bela
Eredeti levél Feladó: Aditya Mahajan Dátum: 2023 október 15 22:32:37Tárgy: Re: [NTG-context] Re: numbered itemize list item label alignmentCímzett: mailing list for ConTeXt users On Sun, 15 Oct 2023, Wolfgang Schuster wrote: > Csikos Bela schrieb am 15.10.2023 um 15

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Aditya Mahajan
On Sun, 15 Oct 2023, Wolfgang Schuster wrote: > Csikos Bela schrieb am 15.10.2023 um 15:51: > > Hello: > > > > I would like to make a long numbered itemize list, where the numbers > > increase up to three digits. > > I would like the numbered labels aligned to the right and the widest > > label's

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Wolfgang Schuster
Csikos Bela schrieb am 15.10.2023 um 15:51: Hello: I would like to make a long numbered itemize list, where the numbers increase up to three digits. I would like the numbered labels aligned to the right and the widest label's left side located at the left margin. I tried the below code but

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Pablo Rodriguez
On 10/15/23 15:51, Csikos Bela wrote: > Hello: > > I would like to make a long numbered itemize list, where the numbers > increase up to three digits. > I would like the numbered labels aligned to the right and the widest > label's left side located at the left margin. > I tried the below code but

[NTG-context] numbered itemize list item label alignment

2023-10-15 Thread Csikos Bela
margin. How can I fix it?Code:\showframe\starttext\startitemize[n,broad][itemalign=flushright]\dorecurse{250}{\item }\stopitemize\stoptextThe resulted pdf is attached as context-itemize-label-alignment.pdf.Thank you in advance,bcsikos context-itemize-label-alignment.pdf Description: Adobe PDF

[NTG-context] Re: Suppress label in captions without suppressing number

2023-07-20 Thread Hans Hagen
On 7/20/2023 5:30 PM, denis.ma...@unibe.ch wrote: Hi, is there an option to suppress the label in captions without suppressing the number as well? I know, I can use \setuplabeltext[de][figure=,], but this will delete the label text globally... Is there a better way via \setupcaption

[NTG-context] Suppress label in captions without suppressing number

2023-07-20 Thread denis.maier
Hi, is there an option to suppress the label in captions without suppressing the number as well? I know, I can use \setuplabeltext[de][figure=,], but this will delete the label text globally... Is there a better way via \setupcaption? Best, Denis

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Thank you so much Alan, that was exactly what I was looking for. Le ven. 20 janv. 2023 à 01:56, Alan Braslau a écrit : > On Thu, 19 Jan 2023 22:40:13 +0100 > Alexandre Christe via ntg-context wrote: > > > def labelT(expr pos)(text t) = > > ... > > enddef; > > vardef labelT@#(text t) = >

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alan Braslau via ntg-context
On Thu, 19 Jan 2023 22:40:13 +0100 Alexandre Christe via ntg-context wrote: > def labelT(expr pos)(text t) = > ... > enddef; vardef labelT@#(text t) = ... enddef ; Then you can pass on the "suffix" @# Alan ___

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Jeong Dal via ntg-context
Dear Alex, I don’t know what you want exactly. I hope that it may help. \startMPpage def myLabel(expr xpos, ypos)(text t) = dotlabel.top(textext(t),(xpos,ypos)); enddef; myLabel(1cm, 1cm, "Position"); \stoppage Good luck. Best regards,

[NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Dear list, Is there a way in a Meta(post)/(fun) macro to specify the label position as an argument? def labelT(expr pos)(text t) = ... enddef; Thanks a lot in advance, Alex ___ If your question is of interest

Re: [NTG-context] m-graph label

2022-07-30 Thread John Kitzmiller via ntg-context
On Tue, Jul 26, 2022 at 2:10 PM Alan wrote: > On Thu, 21 Jul 2022 17:56:45 -0400 > John Kitzmiller wrote: > > > (Apologies for double-dipping, but usage direction for the > > least-squares fit extension in m-graph would be a gift.) > > The least-squares fit (to a polynomial) is a deterministic

Re: [NTG-context] m-graph label

2022-07-30 Thread John Kitzmiller via ntg-context
e X and Y axes: > > string Autoform_X ; Autoform_X := "@.0e" ; % or whatever you want ... > string Autoform_Y ; Autoform_Y := "@.0e" ; > > A few notes: > > Autoform_X and Autoform_Y are used if known, otherwise it falls back > on the string Autoform. > &g

Re: [NTG-context] m-graph label

2022-07-26 Thread Alan via ntg-context
On Thu, 21 Jul 2022 17:56:45 -0400 John Kitzmiller wrote: > (Apologies for double-dipping, but usage direction for the > least-squares fit extension in m-graph would be a gift.) The least-squares fit (to a polynomial) is a deterministic calculation, not an arbitrary non-linear search. As such,

Re: [NTG-context] m-graph label

2022-07-26 Thread Alan via ntg-context
On Thu, 21 Jul 2022 17:56:45 -0400 John Kitzmiller wrote: > > On Wed, Jul 20, 2022 at 9:48 AM Alan > > wrote: % Autoform is the format string used > > by autogrid % Autoform_X, Autoform_Y if defined, are used > > instead > > > > string Autoform ; Autoform = "%g"; >

Re: [NTG-context] m-graph label

2022-07-21 Thread John Kitzmiller via ntg-context
> On Sat, 16 Jul 2022 13:21:06 -0400 > John Kitzmiller via ntg-context wrote: > > > The horizontal axis label of mwe below has 0.0 (showing tenths; pdf > > attached; filename is mwe.tex). > > > > I expected it to show -1, 0, 1, 2, 3, (integers only). Can this

Re: [NTG-context] m-graph label

2022-07-20 Thread Alan via ntg-context
On Sat, 16 Jul 2022 13:21:06 -0400 John Kitzmiller via ntg-context wrote: > The horizontal axis label of mwe below has 0.0 (showing tenths; pdf > attached; filename is mwe.tex). > > I expected it to show -1, 0, 1, 2, 3, (integers only). Can this be > formatted? > > % -1 1

[NTG-context] m-graph label

2022-07-16 Thread John Kitzmiller via ntg-context
The horizontal axis label of mwe below has 0.0 (showing tenths; pdf attached; filename is mwe.tex). I expected it to show -1, 0, 1, 2, 3, (integers only). Can this be formatted? % -1 1 % 0 1 % 0 2 % 1 1 % 2 1 % 2 2 % 2 3 % 2 4 % 3 1 % 3 2 \usemodule[m-graph] \startMPpage[instance=graph, offset

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Am 06.07.22 um 15:24 schrieb Fabrice L: Here are slightly different syntax that could be useful perhaps ? In the second one, the scaled parameter can be replaced easily with a variable, so you can decide and change the size of the label during the course of a picture. Thank you (all), I

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Fabrice L via ntg-context
cond one, the scaled parameter can be replaced easily with a variable, so you can decide and change the size of the label during the course of a picture. \starttext \startMPpage defaultfont := "\truefontname{Sans}"; defaultfontsize := \the\bodyfontsize; defaultscale := 0.5; label.to

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Hans Hagen via ntg-context
On 7/6/2022 1:36 PM, Henning Hraban Ramm via ntg-context wrote: Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context: On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: My stupid way to get labels of different sizes: \starttext \startMPcode    label("normal label", (0, 0));

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
I've used something like the following before. \starttext \startMPcode label("normal label", (0, 0)); label("{\switchtobodyfont[3pt] tiny label}", (0, 18)); label("{\switchtobodyfont[72pt] giant label}", (0, -72)); \stopMPcode \stoptext Henning Hraban R

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context: On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: My stupid way to get labels of different sizes: \starttext \startMPcode    label("normal label", (0, 0));    label("\setsmallbodyfont small label",

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Hans Hagen via ntg-context
On 7/6/2022 12:19 PM, fv leung via ntg-context wrote: My stupid way to get labels of different sizes: \starttext \startMPcode   label("normal label", (0, 0));   label("\setsmallbodyfont small label", (0, 18));   label("\setbigbodyfont big label", (0,

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
My stupid way to get labels of different sizes: \starttext \startMPcode label("normal label", (0, 0)); label("\setsmallbodyfont small label", (0, 18)); label("\setbigbodyfont big label", (0, -18)); \stopMPcode \stoptext Henning Hraban Ramm via ntg-co

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Am 06.07.22 um 07:17 schrieb Aditya Mahajan via ntg-context: On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote: How can I change the font size of labels within one picture? (Untested): See https://www.contextgarden.net/Command/setupMPinstance

Re: [NTG-context] MetaPost label font size

2022-07-05 Thread Aditya Mahajan via ntg-context
On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote: > How can I change the font size of labels within one picture? (Untested): See https://www.contextgarden.net/Command/setupMPinstance \setupMPinstance[metafun][textstyle=sans] Or define a new instance, which sets the textstyle to

[NTG-context] MetaPost label font size

2022-07-05 Thread Henning Hraban Ramm via ntg-context
How can I change the font size of labels within one picture? Hraban \startMPpage defaultfont := "\truefontname{Sans}"; defaultfontsize := \the\bodyfontsize; label.top(defaultfontsize, (0,0)); defaultfontsize := 4bp; label.top(defaultfontsize, (50,0)); % shows that the variable changed, % but

[NTG-context] Caption with hanging figure label

2021-11-30 Thread Ben Moon via ntg-context
com/q/623782/257399>, but was suggested to post on the mailing list. I have also seen the `hang=yes` option (from this post <https://tex.stackexchange.com/a/522242/257399>), which gives the figure label in its own ‘column’. The difference that I want is that the Figure label is

Re: [NTG-context] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-15 Thread T. Kurt Bond
e xtables. If I use >>\startplacetable[location=none] the tables *don't* have a "Table X" >>label, but they float and end up in locations where I don't want them. If >> I >>use \startplacetable[location=force] the tables *do* have a "Table X"

Re: [NTG-context] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-14 Thread Wolfgang Schuster
T. Kurt Bond schrieb am Mo., 14. Juni 2021, 09:23: > I've got three questions: > >1. > >I've got a document with some xtables. If I use >\startplacetable[location=none] the tables *don't* have a "Table X" >label, but they float and end up in lo

[NTG-context] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-14 Thread T. Kurt Bond
I've got three questions: 1. I've got a document with some xtables. If I use \startplacetable[location=none] the tables *don't* have a "Table X" label, but they float and end up in locations where I don't want them. If I use \startplacetable[location=force] the tables

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread jbf
Indeed the no-break spaces were the problem, something I had quite overlooked (so have made a 'message to brain' not to overlook this in the future). I did know about the use of %, but if one searches on the Contextgarden Wiki for \nobreakspace, one finds nothing. Clearly a TeX command that

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread Marco Patzer
On Tue, 5 Jan 2021 08:32:33 +1100 jbf wrote: > and apologies if you didn't think I provided an MWE. The idea is that people can just copy-paste the code into an editor and keep tweaking. It doesn't have to produce the correct output, but it should compile. If you add an MWE you're more likely

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread Marco Patzer
On Mon, 4 Jan 2021 13:22:55 +1100 jbf wrote: > Issue 1: > > Parts need to be called 'Section' (Section 1, section 2 etc.). \setuphead [part] [placehead=yes, bodypartlabel=part] \setuplabeltext [part=Section\nobreakspace] > Issue 2: > > While the above 'sections' are numbered in

[NTG-context] Part label and chapter numbers

2021-01-03 Thread jbf
This is a Mark IV issue rather than LMTX, and while it is almost certainly simple enough, I seem to have got myself confused and am not getting the results I need. essentially I am dealing with a book that is divided into parts and chapter, but the parts need to be called 'Section' not 'Part',

Re: [NTG-context] special chapter label

2020-09-02 Thread Hans Hagen
On 9/2/2020 7:56 AM, jbf wrote: Am working on a book where most chapters are simply labeled Chapter One, Chapter Two etc., and this has been achieved easily enough with \setuplabeltext[chapter=Chapter ]  (also including \setupheads[conversion=Words] to get One, Two instead of 1 2). But

[NTG-context] special chapter label

2020-09-01 Thread jbf
Am working on a book where most chapters are simply labeled Chapter One, Chapter Two etc., and this has been achieved easily enough with \setuplabeltext[chapter=Chapter ]  (also including \setupheads[conversion=Words] to get One, Two instead of 1 2). But several chapter labels need to have a

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Fabrice Couvreur
Thanks !! Le lun. 24 août 2020 à 15:41, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur schrieb am 24.08.2020 um 15:32: > > Hi Wolfgang, > Thank you for your reply. Probably my fault but now I get the number 0 on > the word "Summary". > Fabrice > [image:

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 24.08.2020 um 15:32: Hi Wolfgang, Thank you for your reply. Probably my fault but now I get the number 0 on the word "Summary". Fabrice contents.png \setuphead   [title]   [command=,    numbercommand=] Wolfgang

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Fabrice Couvreur
ank#1\blank#2} > > When I compile my project, I have the label "Chapitre" above the word > "Sommaire" in the table of contents : how to delete it ? > > > 1. Don't apply the command to \title > > \setuphead[title][command=] > > > 2. Make the command

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Wolfgang Schuster
compile my project, I have the label "Chapitre" above the word "Sommaire" in the table of contents : how to delete it ? 1. Don't apply the command to \title \setuphead[title][command=] 2. Make the command local to bodypart of your document, this works only when you use

[NTG-context] Label to delete in the table of contents

2020-08-23 Thread Fabrice Couvreur
Hello, For the title of the chapters I use the following command. \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, width=fit, align=flushleft] {\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}} \blank#1\blank#2} When I compile my project, I have the label

Re: [NTG-context] Vertical space between label and title

2020-07-09 Thread Fabrice Couvreur
l.com>: > > > > Hello, > > I want a vertical space between the label and the chapter title: is this > the right way to proceed ? > > Why not? It seems to work. What’s your problem? > > BTW I’d set \mainlanguage[fr] > > Hraban > > __

Re: [NTG-context] Vertical space between label and title

2020-07-07 Thread Henning Hraban Ramm
> Am 07.07.2020 um 19:27 schrieb Fabrice Couvreur : > > Hello, > I want a vertical space between the label and the chapter title: is this the > right way to proceed ? Why not? It seems to work. What’s your problem? BTW I’d set \mainlangu

[NTG-context] Vertical space between label and title

2020-07-07 Thread Fabrice Couvreur
Hello, I want a vertical space between the label and the chapter title: is this the right way to proceed ? Thank you. Fabrice \setuplabeltext[chapter=Chapitre~] \unexpanded\def\Title#1#2{\framed[frame=off,width=fit,align=flushleft]{#1\blank#2}} \setuphead [chapter] [style=\bfc, command

Re: [NTG-context] Is it possible to have a rotated label in Metafun?

2020-05-25 Thread Hans Hagen
On 5/24/2020 10:41 AM, Otared Kavian wrote: Hi all, In a graph which I am trying to draw with LuaMetafun, I have a variable the values of which I want to show on the graph rotated 90 degrees (or whatever other value). Is it possible to do that? An example is: numeric a, u ; u :=

[NTG-context] Is it possible to have a rotated label in Metafun?

2020-05-24 Thread Otared Kavian
Hi all, In a graph which I am trying to draw with LuaMetafun, I have a variable the values of which I want to show on the graph rotated 90 degrees (or whatever other value). Is it possible to do that? An example is: numeric a, u ; u := 10mm ; a := 4.5 ; label.bot(a,

Re: [NTG-context] Label in externalfigures

2020-02-14 Thread Jan-Erik Hägglöf
de, not as an layer over the picture.\startMPcode draw lmt_svg [ filename = "steguppgift.svg", height = 5cm, width = 10cm, ] ;label(\sometxt{5,0m},(63.936298,129.563995));label(\sometxt{37°},(95.652702,27.367201)); \stopMPcodeThanks /Janne12 feb. 2020 kl. 20:10 skrev Hans Hagen <j.ha...@

Re: [NTG-context] Label in externalfigures

2020-02-13 Thread Jan-Erik Hägglöf
I’ve tested this but it appears outside, not as an layer over the picture. \startMPcode draw lmt_svg [ filename = "steguppgift.svg", height = 5cm, width = 10cm, ] ; label(\sometxt{5,0m},(63.936298,129.563995)); label(\sometxt{37°},(95.652702

Re: [NTG-context] Label in externalfigures

2020-02-12 Thread Hans Hagen
On 2/12/2020 6:01 PM, Jan-Erik Hägglöf wrote: The expected output should be like this, see example in the link below https://drive.google.com/file/d/13pCuUvNeL7T_Hs7-qrKZclkadcJ7_jVV/view?usp=sharing So that I have a picture so I can change the label text inside according to different needs

Re: [NTG-context] Label in externalfigures

2020-02-12 Thread Jan-Erik Hägglöf
The expected output should be like this, see example in the link below https://drive.google.com/file/d/13pCuUvNeL7T_Hs7-qrKZclkadcJ7_jVV/view?usp=sharing <https://drive.google.com/file/d/13pCuUvNeL7T_Hs7-qrKZclkadcJ7_jVV/view?usp=sharing> So that I have a picture so I can change the labe

Re: [NTG-context] Label in externalfigures

2020-02-12 Thread Wolfgang Schuster
On Wed, 12 Feb 2020 16:49:02 +0100 Jan-Erik Hägglöf wrote: > Dear Members! > > I have a question on how to achieve something like this. > > \IncludePicture[picture.pdf][xpos=2, ypos= 4, label=some text] What is the expected output of this command? > I know there is

[NTG-context] Label in externalfigures

2020-02-12 Thread Jan-Erik Hägglöf
Dear Members! I have a question on how to achieve something like this. \IncludePicture[picture.pdf][xpos=2, ypos= 4, label=some text] I know there is a similar function in the simple slides module but I need it in my documents, often exams to my students, so caption is mainly not necessary

Re: [NTG-context] Override MathML formula label

2019-07-29 Thread Duncan Hothersall
Brilliant, thanks Hans. Looks like I need to start delving properly into the power of the XML setups. Duncan On Sun, 28 Jul 2019 at 21:04, Hans Hagen wrote: > > \usemodule[mathml] > > \startxmlsetups mml:formula > \edef\mmlformulalabel{\xmlatt{#1}{label}} > \ed

Re: [NTG-context] Override MathML formula label

2019-07-28 Thread Hans Hagen
On 7/27/2019 8:23 AM, Duncan Hothersall wrote: Hi all. In processing MathML if I want a formula to be numbered I add a label="X" attribute to the tag as per: \usemodule[mathml] \starttext \xmlprocessdata{}{     p=c-t   }{} \stoptext This will label the formula as (1). I

[NTG-context] Override MathML formula label

2019-07-27 Thread Duncan Hothersall
Hi all. In processing MathML if I want a formula to be numbered I add a label="X" attribute to the tag as per: \usemodule[mathml] \starttext \xmlprocessdata{}{ p=c-t }{} \stoptext This will label the formula as (1). I know I can adjust how the automatic numbering is gener

[NTG-context] how to get reference label from stacked itemize

2019-04-06 Thread Floris van Manen
> Did you try \item[myref] and \in[myref]? > This will do the job indeed. \starttext \startitemize[n] \item One \item[refTwo] Two \startitemize[a] \item A \item[refB] B Test \stopitemize \stopitemize see (\in[refTwo].\in[refB]) for Test Is there some construction to combine an item

Re: [NTG-context] how to get reference label from stacked itemize

2019-04-06 Thread Henning Hraban Ramm
> \stopitemize > \stopitemize > > how to label / ref the generated label for item 2.b ? > > see (2.b) Test Did you try \item[myref] and \in[myref]? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net ht

[NTG-context] how to get reference label from stacked itemize

2019-04-06 Thread Floris van Manen
Could someone point me to the docs where to find the proper way to make a reference to some stacked itemize context? \startitemize[n] \item One \item Two \startitemize[a] \item A \item B Test \stopitemize \stopitemize how to label / ref the generated label for item 2.b ? see (2.b) Test

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
On 2018-01-12 17:46, Hans Hagen wrote: On 1/12/2018 10:31 PM, Rik Kabel wrote: maybe putting a \dontleavehmode in front helps Indeed. Thank you. Adding it to the before key of \defineenumeration appears to have no unwanted side effects. Can you think of a reason not to do that? something

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
On 1/12/2018 10:31 PM, Rik Kabel wrote: maybe putting a \dontleavehmode in front helps Indeed. Thank you. Adding it to the before key of \defineenumeration appears to have no unwanted side effects. Can you think of a reason not to do that? something tex ... one starts a group at the start

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
On 1/12/2018 8:24 PM, Rik Kabel wrote: On 2018-01-12 13:27, Hans Hagen wrote: On 1/12/2018 6:58 PM, Rik Kabel wrote: Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
On 2018-01-12 13:27, Hans Hagen wrote: On 1/12/2018 6:58 PM, Rik Kabel wrote: Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
On 1/12/2018 6:58 PM, Rik Kabel wrote: Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when

Re: [NTG-context] Usage of label in startsection etc.

2016-01-26 Thread Wolfgang Schuster
Jan U. Hasecke <mailto:juh+ntg-cont...@mailbox.org> 22. Januar 2016 um 16:54 Hi list, on this page http://wiki.contextgarden.net/Command/startsection the argument "label" is not explained. Since the argument "reference" is used for the text references \in, \at and \

[NTG-context] Usage of label in startsection etc.

2016-01-22 Thread Jan U. Hasecke
Hi list, on this page http://wiki.contextgarden.net/Command/startsection the argument "label" is not explained. Since the argument "reference" is used for the text references \in, \at and \about I wonder what "lab

Re: [NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2016-01-02 Thread Wolfgang Schuster
Alan BRASLAU 31. Dezember 2015 um 20:09 Works fine here. Alan P.S. I simplified your code slightly: \definefloat [recipe] [figure] [default={right,none}] You can’t do this because the second argument is used the names of the \placelistof… and \completelistof…

Re: [NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2015-12-31 Thread Alan BRASLAU
; The code below works perfectly without the placement of the label, > but if I want to place the label, it no longer works. > Thank you > > \definefloat >[recipe] >[figure] > > \setupfloat >[recipe] >[default={right,none}] > > \starttext > &g

[NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2015-12-31 Thread Fabrice Couvreur
Hello, The code below works perfectly without the placement of the label, but if I want to place the label, it no longer works. Thank you \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \switchtobodyfont [pagella, 9pt] \placerecipe

Re: [NTG-context] Regression with label inright placement

2015-10-26 Thread Wolfgang Schuster
fails with the labels shifted to reflect the temporarily narrowed text. Oeps indeed! It’s unrelated to the label mechanism. \showframe \starttext \startnarrower \inright[scope=local]{Right}\input ward \stopnarrower \blank \startnarrower \inright{Right}\input ward \stopnarrower \stoptext Wo

Re: [NTG-context] Regression with label inright placement

2015-10-26 Thread Rik Kabel
On 2015-10-26 07:03, Wolfgang Schuster wrote: \showframe \starttext \startnarrower \inright[scope=local]{Right}\input ward \stopnarrower \blank \startnarrower \inright{Right}\input ward \stopnarrower \stoptext Okay, unrelated to the label mechanism. However, for explicitly placed margin

[NTG-context] Regression with label inright placement

2015-10-25 Thread Rik Kabel
The following code, a slight addition to test suite descriptions/labels-003.tex, when using ConTeXt from 20150904 and earlier works properly. Between that release and 20151004 something changed, and it fails with the labels shifted to reflect the temporarily narrowed text.

[NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2015-08-11 Thread Rik Kabel
The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails

[NTG-context] Label at start of paragraph suppresses indentation

2015-08-03 Thread Rik Kabel
A label at the start of a paragraph suppresses indentation. Should it? \setupindenting[yes,small] \definelabel[xx][text=,alternative=inright] Paragraph one. \xx{}Paragraph two. Paragraph\xx{} three. \stoptext -- Rik

Re: [NTG-context] how to set figure label ?

2015-04-17 Thread Harald Koenig
On Apr 16, Alan BRASLAU wrote: I much prefer the syntax \startplacefigure [reference=fig:,location={here,force},title={}] \externalfigure[]... \stopplacefigure Depending on the strange macros that you want to use, this should generally work. I find that this gives one many more

[NTG-context] how to set figure label ?

2015-04-16 Thread Harald Koenig
Hi, how can I set a label for a figure without \placefigure[][fig:...]{} for some figures I use strange macros -- and at those places I get errors when calling \placefigure BUT I'd like to check the page numbers of those places using \doifreferencefoundelse{fig:bild\the\bildnr

Re: [NTG-context] how to set figure label ?

2015-04-16 Thread Alan BRASLAU
On Thu, 16 Apr 2015 17:27:17 +0200 Harald Koenig koe...@tat.physik.uni-tuebingen.de wrote: how can I set a label for a figure without \placefigure[][fig:...]{} for some figures I use strange macros -- and at those places I get errors when calling \placefigure BUT I'd like to check

[NTG-context] label in Metapost

2014-04-03 Thread Jan Heinen
Ten years ago I made a book with ConText and some Metapost. I made a circle and wrote the number into it: \startuseMPgraphic{Pagenumber} defaultfont := pxb; defaultscale := 1.5; fill fullcircle scaled 36pt withcolor .75white; numeric i; string pagex; i := PageNumber; pagenum = decimal i; label

[NTG-context] Bookmarks with the specified label on

2014-02-06 Thread Lei WANG
I have specified the headnumber of chapter to be the Number chpt. By using \setuplist and \placelist with the attributes label=yes, I could get a content with the label as what I want. But the headnumber of chapter label on bookmarks is still using Number intead of the Number chpt. What should

Re: [NTG-context] setuplabeltext doesn't adjust the part label (with MkIV)

2013-08-31 Thread Sanjoy Mahajan
\setuphead[part][placehead=yes] Add bodypartlabel=part to the setup. Thank you -- wikified on the setuphead command-reference page. With your information, I found the relevant spot in the code, in strc-def.mkiv. The \setuphead for part doesn't include lines analogous to \v!bodypart\c!label

[NTG-context] setuplabeltext doesn't adjust the part label (with MkIV)

2013-08-30 Thread Sanjoy Mahajan
setuplabeltext doesn't seem to adjust the part label. Here's a minimal example: \setuphead[part][placehead=yes] \setuplabeltext[part=Part~] \starttext \part{pt} This is a part. \stoptext With MkIV (e.g. on live.contextgarden.net), the part heading is just 1 pt. With MkII, it is Part 1 pt

Re: [NTG-context] setuplabeltext doesn't adjust the part label (with MkIV)

2013-08-30 Thread Wolfgang Schuster
Am 30.08.2013 um 16:33 schrieb Sanjoy Mahajan san...@olin.edu: setuplabeltext doesn't seem to adjust the part label. Here's a minimal example: \setuphead[part][placehead=yes] Add bodypartlabel=part to the setup. Wolfgang

Re: [NTG-context] MetaPost label direction prefix

2013-08-25 Thread Hans Hagen
On 8/24/2013 2:31 PM, Marco Patzer wrote: On 2013–08–24 Hans Hagen wrote: startplaincompatibity ; label(first, origin); pair laboff.foo ; laboff.foo := (.5,-1) ; labxf.foo := labyf.foo := 1 ; label.foo(second, origin); stopplaincompatibity

Re: [NTG-context] MetaPost label direction prefix

2013-08-24 Thread Marco Patzer
On 2013–08–24 Hans Hagen wrote: startplaincompatibity ; label(first, origin); pair laboff.foo ; laboff.foo := (.5,-1) ; labxf.foo := labyf.foo := 1 ; label.foo(second, origin); stopplaincompatibity ; Brilliant! Thanks a lot. A few things: 1

[NTG-context] MetaPost label direction prefix

2013-08-23 Thread Marco Patzer
Hi, what is the reason the label direction prefix variables (rt, bot, llft, etc.) are prefixed with mpfun_ in MkIV (mp-mlib.mpiv)? When new directional prefixes are being defined it fails when mplib is used unless the mpfun_ prefix is added. And likewise, code using the mpfun_ prefix fails

Re: [NTG-context] MetaPost label direction prefix

2013-08-23 Thread Hans Hagen
On 8/23/2013 11:42 AM, Marco Patzer wrote: Hi, what is the reason the label direction prefix variables (rt, bot, llft, etc.) are prefixed with mpfun_ in MkIV (mp-mlib.mpiv)? When new directional prefixes are being defined it fails when mplib is used unless the mpfun_ prefix is added

Re: [NTG-context] MetaPost label direction prefix

2013-08-23 Thread Marco Patzer
in MkIV? \starttext \startMPcode label(first, origin); %% MkIV %% pair mfun_laboff.foo ; mfun_laboff.foo := (.5,-1) ; %% mfun_labxf.foo := mfun_labyf.foo := 1 ; %% MkII pair laboff.foo ; laboff.foo := (.5,-1) ; labxf.foo := labyf.foo := 1

Re: [NTG-context] MetaPost label direction prefix

2013-08-23 Thread Hans Hagen
namespace protection. Why run traditional in MkIV? \starttext \startMPcode label(first, origin); %% MkIV %% pair mfun_laboff.foo ; mfun_laboff.foo := (.5,-1) ; %% mfun_labxf.foo := mfun_labyf.foo := 1 ; %% MkII pair laboff.foo ; laboff.foo := (.5,-1

Re: [NTG-context] Bug in label and setuphead

2013-01-18 Thread Aditya Mahajan
On Fri, 18 Jan 2013, Wolfgang Schuster wrote: Am 17.01.2013 um 19:20 schrieb Aditya Mahajan adit...@umich.edu: \setuphead[whatever][label=whatever] does not change anything. This looks like a bug to me. Otherwise, what is the right way of changing the label of a section head? \setuphead

[NTG-context] Bug in label and setuphead

2013-01-17 Thread Aditya Mahajan
Hi, (This is based on a question on tex.se: http://tex.stackexchange.com/q/94170/323) If a new head is defined based on an existing head, it still uses the label of the previous head. \definehead[whatever][chapter] \setuplabeltext[en][whatever=Whatever~] \setuplabeltext[en][chapter

Re: [NTG-context] Bug in label and setuphead

2013-01-17 Thread Wolfgang Schuster
Am 17.01.2013 um 19:20 schrieb Aditya Mahajan adit...@umich.edu: Hi, (This is based on a question on tex.se: http://tex.stackexchange.com/q/94170/323) If a new head is defined based on an existing head, it still uses the label of the previous head. \definehead[whatever][chapter

  1   2   3   >